package vip.sweet.biz.modular.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.Date;

/**
 * @author ASUS
 * @Date 2025/10/5 22:40
 * @Descripition
 */
@TableName("biz_cart_items")
@Schema(description = "业务逻辑购物车项实体类")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BizCartItems {
    @Schema(description = "购物车项ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @Schema(description = "用户ID")
    private String userId;
    @Schema(description = "商品ID")
    private String productId;
    @Schema(description = "商品数量")
    private Integer quantity;
    @Schema(description = "是否选中")
    private Integer selected;
    @Schema(description = "商品规格")
    private String size;
    @Schema(description = "商品颜色")
    private String color;
    @Schema(description = "添加时间")
    private Date addedAt;
}
